package com.hougong.im.body.notice;

import com.hougong.im.annotation.ProtocolField;
import com.hougong.im.body.BaseBodyCodec;

/**
 * 好友消息 文字消息 0x8888
 */
public class FriendMessageNotice extends BaseBodyCodec<FriendMessageNotice> {
    /**
     * 消息唯一id
     */
    @ProtocolField(sort = 1)
    private long mid;
    /**
     * 好友id
     */
    @ProtocolField(sort = 2)
    private long fid;
    /**
     * 好友头像地址长度
     */
    @ProtocolField(sort = 3)
    private int headimgLen;
    /**
     * 好友头像地址
     */
    @ProtocolField(sort = 4,lenField = "headimgLen")
    private String headimg;
    /**
     * 文字长度
     */
    @ProtocolField(sort = 5)
    private int msgLen;
    /**
     * 文字内容
     */
    @ProtocolField(sort = 6,lenField = "msgLen")
    private String msg;
    /**
     * 图片消息地址长度
     */
    @ProtocolField(sort = 7)
    private int imageLen;
    /**
     * 图片消息地址
     */
    @ProtocolField(sort = 8,lenField = "imageLen")
    private String image;
    /**
     *  类型  0文本1图片2语音录音3视频录像
     */
    @ProtocolField(sort = 9)
    private int type;
    /**
     * 时间
     */
    @ProtocolField(sort = 10)
    private long timestamp;

    public long getMid() {
        return mid;
    }

    public void setMid(long mid) {
        this.mid = mid;
    }

    public long getFid() {
        return fid;
    }

    public void setFid(long fid) {
        this.fid = fid;
    }

    public int getMsgLen() {
        return msgLen;
    }

    public void setMsgLen(int msgLen) {
        this.msgLen = msgLen;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }


    public int getHeadimgLen() {
        return headimgLen;
    }

    public void setHeadimgLen(int headimgLen) {
        this.headimgLen = headimgLen;
    }

    public String getHeadimg() {
        return headimg;
    }

    public void setHeadimg(String headimg) {
        this.headimg = headimg;
    }

    public int getImageLen() {
        return imageLen;
    }

    public void setImageLen(int imageLen) {
        this.imageLen = imageLen;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }


}
